package com.richmond.gui.bilan;

import com.richmond.data.bilan.BilanRecord;
import javafx.scene.control.TableCell;

import java.text.DecimalFormat;
import java.text.NumberFormat;

/**
 * User: csavard
 * Date: 12-10-08
 * Time: 22:59
 */
public class BlankZeroFormatCell extends TableCell<BilanRecord, Long> {
    @Override
    protected void updateItem(Long item, boolean empty) {
        super.updateItem(item, empty);
        if (item == null || item == 0) {
            setText("");
        } else {
            setText(String.valueOf(item));
        }
    }
}